using AllIsWell.Core.Models;
using AllIsWell.Persistance;
using AllIsWell.Services.Infrastructure;

namespace AllIsWell.Services
{
    public class WhatService : IWhatService
    {
        private readonly IWhatRepository _whatRepository;

        public WhatService(IUnitOfWork unitOfWork)
        {
            _whatRepository = unitOfWork.WhatRepository;
        }

        public What GetWhat(int whatId)
        {
            return _whatRepository.GetWhat(whatId);
        }
    }
}